package br.com.weaverwebsite.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppContextUtil {

	
	private static ApplicationContext appContext;
	
	public AppContextUtil() {
		super();
	}
	
	public static ApplicationContext getAppContext(){
		if (appContext == null){
			appContext = new ClassPathXmlApplicationContext("context.xml");
		}
		
		return appContext;
	}
	
	
	
}
